package com.ostrich.note.ui.note.viewmodel;


import com.ostrich.note.entity.BaseResponseEntity;
import com.ostrich.note.ui.note.repository.NoteRepository;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.ViewModel;

public class NoteTypeViewModel extends ViewModel {

    private NoteRepository mNoteRepository = new NoteRepository();
    //删除分类
    public LiveData<BaseResponseEntity> notepadClassDel(int type_id){
        return mNoteRepository.notepadClassDel(type_id);
    }
    //添加分类
    public LiveData<BaseResponseEntity> insertNotepadType(String title,int color){
        return mNoteRepository.insertNotepadType(title,color);
    }
    //编辑分类
    public LiveData<BaseResponseEntity> notepadTitleEdit(String title,int color, int type_id){
        return mNoteRepository.notepadTitleEdit(title,color,type_id);
    }
}
